from flask_restful import fields

cinema_fields = {
    'name':fields.String,
    'city':fields.String,
    'district':fields.String,
    'address':fields.String,
    'phone':fields.String,
    'score':fields.String,
}

data_fields = {
    'districts':fields.List(fields.String),
    'cinemas':fields.List(fields.Nested(cinema_fields))
}

result = {
    'status':fields.Integer,
    'msg':fields.String,
    'data':fields.Nested(data_fields)
}